<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>系统</title>
		
		<STYLE type="text/css">
<!--
body {
	font-family: arial, 宋体, serif;
	font-size: 12px;
}

* {
	margin: 0px;
	padding: 0px;
}

#nav {
	width: 155px;
	line-height: 30px;
	list-style-type: none;
	text-align: left;
	
	
	/*定义整个ul菜单的行高和背景色*/
}

/*==================一级目录===================*/
#nav a {
	width: 155px;
	display: block;
	padding-left: 20px;
	/*Width(一定要)，否则下面的Li会变形*/
}

#nav li {
	border-bottom: #FFF 1px solid; /*下面的一条白边*/
	background-color: #FECFD6;
	color: #DD1336;
	font-weight: bold;
	background: url(../images/dot_o.gif) no-repeat 8px 8px;
	cursor: pointer;
}
#nav li span{
	 float:left;
      display:block;
      background:url("resource/img/top/tabright6.gif") no-repeat right top;
      color:#FFF;
}
#nav LI span {float:none;}
#nav li a:hover {
	background: #F85B78; /*一级目录onMouseOver显示的背景色*/
}

#nav a:link {
	color: #DD1336;
	text-decoration: none;
}

#nav a:visited {
	color: #DD1336;
	text-decoration: none;
}

#nav a:hover {
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
}

/*==================二级目录===================*/
#nav li ul {
	list-style: none;
	text-align: left;
}

#nav li ul li {
	background: #F5F5F5; /*二级目录的背景色*/
	font-weight: normal;
}

#nav li ul a {
	padding-left: 20px;
	width: 155px;
	/* padding-left二级目录中文字向右移动，但Width必须重新设置=(总宽度-padding-left)*/
}

/*下面是二级目录的链接样式*/
#nav li ul a:link {
	color: #666;
	text-decoration: none;
}

#nav li ul a:visited {
	color: #666;
	text-decoration: none;
}

#nav li ul a:hover {
	color: #F3F3F3;
	text-decoration: none;
	font-weight: normal;
	background: #FFAA1C;
	/* 二级onmouseover的字体颜色、背景色*/
}

/*==============================*/
#nav li:hover ul {
	left: auto;
}

#nav li.sfhover ul {
	left: auto;
}

#content {
	clear: left;
}

#nav ul.collapsed {
	display: none;
}

-->
#PARENT {
	width: 155px;
}
</STYLE>
<SCRIPT type="text/javascript">
    var left_one_menu_id=-1;
    var left_two_menu_id = -1;
    var left_one_childMenu_id = -1;
    var left_one_menu_devidPrefix = "left_one_menu_" ;
    var left_two_menu_devidPrefix = "left_two_menu_" ;
     var left_one_ChildMenu_devidPrefix = "ChildMenu_";
    function leftOneLink(devid){
		<!-- left 修改一级菜单的样式 同时隐藏ChildMenu-->
		 var left_one_menu_devid = left_one_menu_devidPrefix + left_one_menu_id;
		 //修改一级菜单的样式
		 var ChildMenu_devid = left_one_ChildMenu_devidPrefix+left_one_childMenu_id;
		 //隐藏ChildMenu
		 hiddenObj(ChildMenu_devid);
		 //显示当前点击的一级菜单样式并赋值
		 left_one_menu_id = devid;
		 left_one_childMenu_id = devid;
		 left_one_menu_devid = left_one_menu_devid = left_one_menu_devidPrefix + left_one_menu_id;;
		 
		 ChildMenu_devid = left_one_ChildMenu_devidPrefix+left_one_childMenu_id;
		 updateObjCss(ChildMenu_devid,'');
    }
    function leftTwoLink(devid){
   
    }
    
    function updateObjCss(devid,cssName){
  var obj =  document.getElementById(devid) ;
  if(obj!=null){
   obj.className=cssName;
   }
   
    }
 function hiddenObj(devid){
   var obj =  document.getElementById(devid) ;
  if(obj!=null){
   obj.className="collapsed";
   }
  
  }
 </SCRIPT>
</head>
<body>
	<div id="PARENT">
	<ul id="nav">
		<li id="left_one_menu_0" onclick="leftOneLink(0)">
			<span> &nbsp;&nbsp;应用管理</span>
			<ul id="ChildMenu_0" class="collapsed">
				<li id="left_two_menu_left_two_menu_0" onclick="leftTwoLink(0)">
					<a href="${contextPath}/mobile/MobileAppManageAction_list.do" target="rightFrame">手机应用管理</a>
					<a href="${contextPath}/mobile/BusinessAction_list.do" target="rightFrame">手机业务管理</a>
					<a href="${contextPath}/mobile/MobileClientAction_list.do" target="rightFrame">手机客户端管理</a>
				</li>
			</ul>
		</li>
		<li id="left_one_menu_1" onclick="leftOneLink(1)">
			<span> &nbsp;&nbsp;系统配置</span>
			<ul id="ChildMenu_1" class="collapsed">
				<li id="left_two_menu_left_two_menu_1" onclick="leftTwoLink(1)">
					<a href="updateCircleAction_list.do" target="rightFrame">更新周期管理</a>
					<a href="messageTypeAction_list.do" target="rightFrame">排序类型管理</a>
				</li>
			</ul>
		</li>
		<li id="left_one_menu_2" onclick="leftOneLink(2)">
			<span> &nbsp;&nbsp;系统管理</span>
			<ul id="ChildMenu_2" class="collapsed">
				<li id="left_two_menu_left_two_menu_2" onclick="leftTwoLink(2)">
					<a href="${contextPath}/phone/phoneInfoAction_list.do" target="rightFrame">手机信息管理</a>
					<a href="${contextPath}/sub/phoneSubInfoAction_list.do" target="rightFrame">手机管家信息发布</a>
					<a href="${contextPath}/driver/driverInfoAction_list.do" target="rightFrame">手机驱动信息管理</a>
					<a href="${contextPath}/msg/messageBoardAction_list.do" target="rightFrame">手机留言信息管理</a>
				</li>
			</ul>
		</li>
		<!-- 
			<s:iterator value="leftMenu" status="st" var="left_menu">
				<li id="left_one_menu_<s:property value='#st.index'/>"
					onclick="leftOneLink(<s:property value='#st.index'/>)">
					 <span> &nbsp;&nbsp;&nbsp;<s:property value="name"/></span>
					<ul id="ChildMenu_<s:property value='#st.index'/>" class="collapsed">
						<s:iterator value="#left_menu.children" var="children_menu"
							status="st_children">
								<li	id="left_two_menu_left_two_menu_<s:property value='#st_children.index'/>"
									onclick="leftTwoLink(<s:property value='#st_children.index'/>)">
									<s:if test="#children_menu.open==''||#children_menu.open==null">
										<a
											href="${contextPath}<s:property value='#children_menu.url'/>"
											target="rightFrame">
											<s:property value="#children_menu.name"/>
											 </a>
									</s:if>
									<s:else>
										<a
											href="${contextPath}<s:property value='#children_menu.url'/>"
											target="<s:property value='#children_menu.open'/>">
											<s:property value="#children_menu.name"/>
											 </a>
									</s:else>
                                     </li>
						</s:iterator>
					</ul>
				</li>
			</s:iterator>
			 -->
		</ul>
        </div>
	</body>
</html>